package com.project.common.tag;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.Component;
import org.apache.struts2.views.jsp.ComponentTagSupport;

import com.opensymphony.xwork2.util.ValueStack;

public class NewsCourseTitleTag extends ComponentTagSupport{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//显示第几层
	private String count = null;
	//一共显示几笔数据
	private String recordCount = null;
	// 类别，course:课程
	private String type = null;
	
	
	@Override
	public Component getBean(ValueStack vs, HttpServletRequest request,
			HttpServletResponse response) {
		return new NewsCourseTitle(vs,request);
	}
	
	
	//初始化数据
	@Override
	protected void populateParams() {
		super.populateParams();
		NewsCourseTitle nt=(NewsCourseTitle)component;
		nt.setCount(count);
		nt.setRecordCount(recordCount);
		nt.setType(type);
		
	}
	
	public void release() {
		super.release();
	}


	public String getCount() {
		return count;
	}


	public void setCount(String count) {
		this.count = count;
	}


	public String getRecordCount() {
		return recordCount;
	}


	public void setRecordCount(String recordCount) {
		this.recordCount = recordCount;
	}


	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}


	
	
}
